package com.cyandpos.pad.refund.contract;


import com.cyandpos.pad.posdata.BackUploadResult;
import com.cyandpos.pad.posdata.Member;
import com.cyandpos.pad.posdata.PrepareRefundData;
import com.cyandpos.pad.posdata.QueryMemberReq;

public class UploadRefundContract {
    public interface View{
        void showProgress();
        void dismissDialog();
        void showErrMessage(String msg);
        void onSucess(BackUploadResult result);
        PrepareRefundData getTicketInfo();
        void onGetVIPsuccess(Member member);
    }

    public interface Presenter{
        void upLoadBackGoods();
        void getVipInfo(QueryMemberReq queryMemberInfoRequestParam);
    }

    public interface Model{
        void upLoadBackGoods(PrepareRefundData backUploadReq, OnCompleteListener completeListener);
        interface OnCompleteListener{
            void onSuccess(BackUploadResult result);
            void onFailure(String errorMsg);
        }
        void getVipInfo(QueryMemberReq queryMemberInfoRequestParam, OngetVipInfoCompleteListener listener);
        interface OngetVipInfoCompleteListener{
            void onGetVipSuccess(Member member);
            void onGetVipFailure(String errorMsg);
        }
    }

}
